//
//  PayMoneyDetailTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/12.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PayMoneyDetailTableViewCell.h"

@implementation PayMoneyDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.moneyLabel];
}

-(UILabel *)titleLabel
{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 25, WIDTH, 21)];
        _titleLabel.font = font(18);
        _titleLabel.textColor = SFMColor(51, 51, 51);
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.text = @"本期待缴";
    }
    return _titleLabel;
}

-(UILabel *)moneyLabel
{
    if (_moneyLabel == nil) {
        _moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 65, WIDTH, 31)];
        _moneyLabel.font = font(30);
        _moneyLabel.textColor = SFMColor(246, 110, 36);
        _moneyLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _moneyLabel;
}

-(void)send
{
    self.moneyLabel.text = @"￥2345.00";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
